package com.micro.core.page;

import lombok.Data;

/**
 * <h1>分页对象</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/2/22
 */
@Data
public class Pager {

    /**
     * 当前记录查询索引
     */
    private Integer pageNum;

    /**
     * 每页数据显示数量
     */
    private Integer pageSize;

    /**
     * 构造分页初始值
     */
    public Pager() {
        this.pageNum = 1;
        this.pageSize = 10;
    }

    public Pager(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

}
